for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
var blocktrail = require('../../main');
var btccom = !!JSON.parse(process.env.BTCCOM);
var sdk = blocktrail.BlocktrailSDK({
apiKey : process.env.BLOCKTRAIL_SDK_APIKEY || "EXAMPLE_BLOCKTRAIL_SDK_NODEJS_APIKEY",
apiSecret : process.env.BLOCKTRAIL_SDK_APISECRET || "EXAMPLE_BLOCKTRAIL_SDK_NODEJS_APISECRET",
btccom: btccom
});
/*
For positive case
*/
sdk
.transaction("2613f3f7ccf6ca8beb68f72469905048120d7fc353bb02e81b1b4f570c5ce490")
.then(function (tx) {
console.log(tx);
console.log
}, function (error) {
console.log(error);
For negative case
.transaction("dbaf14e1c476e76ea05a8b71921a46d6b06f0a950f1sdssd7c5f9f1a03b8fae467f10")